#include "Scene03.hpp"

Scene03::Scene03() {
    this->setMessage("Here comes the fun part: enter in the light beam and press 'W', 'A', 'S', 'D'");

    b2Vec2 vertices[10];
    vertices[0].Set(-6.75f, -4.0f);
    vertices[1].Set(2.75f, -4.0f);
    vertices[2].Set(2.75f, 0.0f);
    vertices[3].Set(6.75f, 0.0f);
    vertices[4].Set(6.75f, 2.0f);
    vertices[5].Set(4.75f, 2.0f);
    vertices[6].Set(4.75f, 4.0f);
    vertices[7].Set(-4.75f, 4.0f);
    vertices[8].Set(-4.75f, -2.0f);
    vertices[9].Set(-6.75f, -2.0f);

    this->createRoom(3, vertices, 10);
    this->start = this->createDoor(-4.75f, -3.0f, -1.0f);
    this->exit = this->createDoor(4.75, 1.0f, 1.0f);
    this->exit->setState(false);
    this->createExit(5.75f, 1.0f);
    this->hero = this->createHero(-6.75f + HeroElement::WIDTH / 2.0f, -4.0f + HeroElement::HEIGHT / 2.0f);

    this->createSpotlight(2.5f, 3.65f, 3.0f * b2_pi / 2.0f, b2_pi / 6.0f, 8.0f, LightElement::attractiveLight)->setState(true);
}
